export const state = {
    userInfo:sessionStorage.getItem("user")?JSON.parse(sessionStorage.getItem("user")):{}
}
export const mutations = {
    changeUserInfo(state,obj){
        state.userInfo = obj
        sessionStorage.setItem("user",JSON.stringify(obj))
    }
}
export const getters = {
    userInfo(state){
        return state.userInfo
    }
}